import request from '@/utils/request'

//查询采购订单详情
export function listProductCategory() {
  return request({
    url: '/purchase/order/append/getProductCategoryList',
    method: 'get'
  })
}
//查询商品列表
export function listProductList(query) {
  return request({
    url: '/purchase/order/append/getProductList',
    method: 'get',
    params: query
  })
}
//根据商品分类查询商品列表
export function listProductListByCategory(category) {
  return request({
    url: '/purchase/order/append/getProductListByCategory',
    method: 'get',
    params: { category }
  })
}
//查询仓库列表
export function listWarehouseList() {
  return request({
    url: '/purchase/order/append/getWarehouseList',
    method: 'get'
  })
}
//新增采购订单
export function addOrder(data) {
  return request({
    url: '/purchase/order/append/order',
    method: 'post',
    data
  })
}





